package com.test.hello.dao;

import com.test.hello.model.Role;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    /**
     * 根据角色id查询 权限以及用户
     * @param id
     * @return
     */
    Role findById(Long id);
}